package edu.isistan.matching.structures.elements.types;

import java.util.List;

import edu.isistan.matching.structures.elements.TypeElement;

public class AnyType extends TypeElement {

	public AnyType(String nombre) {
		super(nombre);
	}

	public AnyType() {
		super("");
	}

	@Override
	public List<TypeElement> getSubTiposList() {

		return null;
	}

	@Override
	public boolean isPrimitivo() {
		
		return true;
	}

	@Override
	public boolean isAnyType() {

		return true;
	}
	public Object clone() {
		AnyType clone = new AnyType(getName());
		clone.setAnyType(isAnyType());
		clone.setNameSpace(getNameSpace());
		clone.setNillable(isNillable());
		clone.setParentElement(getParentElement());
		clone.setPrimitivo(isPrimitivo());
		clone.setSecuencia(isSecuencia());
		clone.setTargetNameSpace(getTargetNameSpace());
		clone.setType(getType());
		clone.setLista(isLista());

		return clone;
	}
}
